import request from '@/plugin/axios'

export function login (data) {
  return request({
    url: '/user/login',
    method: 'post',
    params: data
  })
}

export function getInfo (data) {
  return request({
    url: '/user/info',
    method: 'get'
  })
}

export function getServerRoute () {
  return request({
    url: '/user/getServerRoute',
    method: 'get'
  })
}
